package exercise;

public class TestObj {

    public static void main(String[] args) {
        Bean b = Bean.getBean();
        b.setI(100);
        m1(b);
        System.out.println(b.getI());
    }
    
    private static void m1(Bean b){
        b.setI(300);
        b = m2(b);
    }
    
    private static Bean m2(Bean b){
        return null;
    }

}
